﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using shop.entity;
using shop.service;
using shop.util;

namespace shop.web.view_admin.goods
{
    public partial class Detail : System.Web.UI.Page
    {
        protected Goods goods;
        private GoodsService goodsService = new GoodsService();
        protected List<Catagory> catagoryList;
        private CatagoryService catagoryService = new CatagoryService();
        protected void Page_Load(object sender, EventArgs e) { 

            int id = RequestUtil.ParseStringToInt(Request, "id");
            catagoryList = catagoryService.ListCatagory();
            goods = goodsService.getGoods(id);

        }
    }
}